\hypertarget{class_crawler_1_1_website}{}\section{Crawler\+:\+:Website Class Reference}
\label{class_crawler_1_1_website}\index{Crawler\+::\+Website@{Crawler\+::\+Website}}


{\ttfamily \#include $<$Website.\+hpp$>$}

\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
using \hyperlink{class_crawler_1_1_website_ad323c2cfd249fc9cd2692c00eb50c0c9}{Iterator} = std\+::list$<$ \hyperlink{class_crawler_1_1_link}{Crawler\+::\+Link} $>$\+::iterator
\item 
using \hyperlink{class_crawler_1_1_website_acfbc2b2241aa025f4fc57965dfe69fdb}{Const\+Iterator} = std\+::list$<$ \hyperlink{class_crawler_1_1_link}{Crawler\+::\+Link} $>$\+::const\+\_\+iterator
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_crawler_1_1_website_af117d7f36a02bb69e73abe35c7840fd8}{Website} ()
\begin{DoxyCompactList}\small\item\em Default constructor which adds the root as default entry. \end{DoxyCompactList}\item 
\hyperlink{class_crawler_1_1_website_a1f9fc004b40e3c2ab5a3fabc237fef44}{Website} (const std\+::string \&scheme, const std\+::string \&authority)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\hyperlink{class_crawler_1_1_website_a0b01cf699479e5c1acd31fc97d10f57e}{Website} (const std\+::string \&website)
\begin{DoxyCompactList}\small\item\em Constructor for parsing a website. \end{DoxyCompactList}\item 
\hyperlink{class_crawler_1_1_website_a207c8f8aea36c7f974c1bc25c533c1de}{Website} (const \hyperlink{class_crawler_1_1_website}{Website} \&website)
\begin{DoxyCompactList}\small\item\em Default copy constructor. \end{DoxyCompactList}\item 
\hyperlink{class_crawler_1_1_website_af1988e1690b7d76d5e04ae25bb7b400f}{Website} (\hyperlink{class_crawler_1_1_website}{Website} \&\&website)
\begin{DoxyCompactList}\small\item\em Default move Constructor. \end{DoxyCompactList}\item 
\hyperlink{class_crawler_1_1_website}{Website} \& \hyperlink{class_crawler_1_1_website_aa2e74f3f60f353ad06b37fe704cbc7fb}{operator=} (const \hyperlink{class_crawler_1_1_website}{Website} \&website)
\begin{DoxyCompactList}\small\item\em Copy assignment operator overloading. \end{DoxyCompactList}\item 
\hyperlink{class_crawler_1_1_website}{Website} \& \hyperlink{class_crawler_1_1_website_a2a2e817a709a813f3be842450012c672}{operator=} (\hyperlink{class_crawler_1_1_website}{Website} \&\&website)
\begin{DoxyCompactList}\small\item\em Move assignment operator overloading. \end{DoxyCompactList}\item 
bool \hyperlink{class_crawler_1_1_website_a79d21d817e6cfa9300d448540df03400}{was\+Visited} () const 
\begin{DoxyCompactList}\small\item\em Checks if website was visited (all links have been visited) \end{DoxyCompactList}\item 
void \hyperlink{class_crawler_1_1_website_ac9e3218e95e4121b730958d6f4d5ab88}{set\+Visited} (bool visited)
\begin{DoxyCompactList}\small\item\em Changes if website was visited. \end{DoxyCompactList}\item 
const std\+::string \& \hyperlink{class_crawler_1_1_website_a332143681603ea9dc70dfbfe5b8c1b95}{get\+Scheme} () const 
\begin{DoxyCompactList}\small\item\em Returns scheme. \end{DoxyCompactList}\item 
void \hyperlink{class_crawler_1_1_website_a423aecbab2d73031b42ac9f986c4aa58}{set\+Scheme} (const std\+::string \&scheme)
\begin{DoxyCompactList}\small\item\em Changes scheme. \end{DoxyCompactList}\item 
const std\+::string \& \hyperlink{class_crawler_1_1_website_a108463b7bc848fb9b86b7b7601f94f68}{get\+Authority} () const 
\begin{DoxyCompactList}\small\item\em Returns authority. \end{DoxyCompactList}\item 
void \hyperlink{class_crawler_1_1_website_aae4b1c88160dde492aa935494177764f}{set\+Authority} (const std\+::string \&authority)
\begin{DoxyCompactList}\small\item\em Changes authority. \end{DoxyCompactList}\item 
bool \hyperlink{class_crawler_1_1_website_a6e59ad6594bee5c156c3fba3dd9567a0}{exists\+Link} (const \hyperlink{class_crawler_1_1_link}{Crawler\+::\+Link} \&link)
\begin{DoxyCompactList}\small\item\em Checks if link exists. \end{DoxyCompactList}\item 
void \hyperlink{class_crawler_1_1_website_ae329d422dadf492168d97e60d1665a50}{add\+Link} (const \hyperlink{class_crawler_1_1_link}{Crawler\+::\+Link} \&link)
\begin{DoxyCompactList}\small\item\em Adds a link to the website. \end{DoxyCompactList}\item 
void \hyperlink{class_crawler_1_1_website_a49c608507b8a9e5a9a61ab322218bc90}{remove\+Link} (const \hyperlink{class_crawler_1_1_link}{Crawler\+::\+Link} \&link)
\begin{DoxyCompactList}\small\item\em Removes a link from the website. \end{DoxyCompactList}\item 
\hyperlink{class_crawler_1_1_website_ad323c2cfd249fc9cd2692c00eb50c0c9}{Iterator} \hyperlink{class_crawler_1_1_website_a21cb582dcf6dd40a55201d0d72895aff}{remove\+Link} (\hyperlink{class_crawler_1_1_website_ad323c2cfd249fc9cd2692c00eb50c0c9}{Iterator} link)
\begin{DoxyCompactList}\small\item\em Removes a link from the website. \end{DoxyCompactList}\item 
const std\+::list$<$ \hyperlink{class_crawler_1_1_link}{Crawler\+::\+Link} $>$ \& \hyperlink{class_crawler_1_1_website_a34166a0d295179265b83f8fc7e20a01a}{get\+Links} () const 
\begin{DoxyCompactList}\small\item\em Returns the list of links. \end{DoxyCompactList}\item 
void \hyperlink{class_crawler_1_1_website_aea1eb836a63cd3a3a1060c0758858ce4}{register\+Worker} (\hyperlink{class_crawler_1_1_worker}{Crawler\+::\+Worker} \&worker)
\begin{DoxyCompactList}\small\item\em Registers a worker. \end{DoxyCompactList}\item 
void \hyperlink{class_crawler_1_1_website_a697612a26c11879c5b8d1555778778de}{unregister\+Worker} (\hyperlink{class_crawler_1_1_worker}{Crawler\+::\+Worker} \&worker)
\begin{DoxyCompactList}\small\item\em Unregisters a worker. \end{DoxyCompactList}\item 
const std\+::list$<$ \hyperlink{class_crawler_1_1_worker}{Crawler\+::\+Worker} $\ast$ $>$ \& \hyperlink{class_crawler_1_1_website_a1f59eed6d2245e66021602ee9808c303}{get\+Worker} () const 
\begin{DoxyCompactList}\small\item\em Returns all assigned workers. \end{DoxyCompactList}\item 
\hyperlink{class_crawler_1_1_website_ad323c2cfd249fc9cd2692c00eb50c0c9}{Iterator} \hyperlink{class_crawler_1_1_website_aae6db6037312d6fad6ae2ff01000fd64}{begin} ()
\begin{DoxyCompactList}\small\item\em Returns begin iterator. \end{DoxyCompactList}\item 
\hyperlink{class_crawler_1_1_website_acfbc2b2241aa025f4fc57965dfe69fdb}{Const\+Iterator} \hyperlink{class_crawler_1_1_website_afcbc63478703d83dd768b28b6c012f2e}{begin} () const 
\begin{DoxyCompactList}\small\item\em Returns begin iterator. \end{DoxyCompactList}\item 
\hyperlink{class_crawler_1_1_website_acfbc2b2241aa025f4fc57965dfe69fdb}{Const\+Iterator} \hyperlink{class_crawler_1_1_website_a1625142f1eb62413e46421a9be7ae66e}{cbegin} () const 
\begin{DoxyCompactList}\small\item\em Returns begin iterator. \end{DoxyCompactList}\item 
\hyperlink{class_crawler_1_1_website_ad323c2cfd249fc9cd2692c00eb50c0c9}{Iterator} \hyperlink{class_crawler_1_1_website_a6d640935e728869e08f10f7a2b8c91e2}{end} ()
\begin{DoxyCompactList}\small\item\em Returns end iterator. \end{DoxyCompactList}\item 
\hyperlink{class_crawler_1_1_website_acfbc2b2241aa025f4fc57965dfe69fdb}{Const\+Iterator} \hyperlink{class_crawler_1_1_website_a156de4df95ad623d00a1cea69cb99bbd}{end} () const 
\begin{DoxyCompactList}\small\item\em Returns end iterator. \end{DoxyCompactList}\item 
\hyperlink{class_crawler_1_1_website_acfbc2b2241aa025f4fc57965dfe69fdb}{Const\+Iterator} \hyperlink{class_crawler_1_1_website_a25f7e9a65365639f78decdffd4406453}{cend} () const 
\begin{DoxyCompactList}\small\item\em Returns end iterator. \end{DoxyCompactList}\item 
\hyperlink{class_crawler_1_1_link}{Crawler\+::\+Link} $\ast$ \hyperlink{class_crawler_1_1_website_a1131a5af4ca3680410de2875ffcd1d2e}{request\+Link} ()
\begin{DoxyCompactList}\small\item\em Requests link from website The function marks the website automatically as visited if all links has been visited. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}


Definition at line 14 of file Website.\+hpp.



\subsection{Member Typedef Documentation}
\hypertarget{class_crawler_1_1_website_acfbc2b2241aa025f4fc57965dfe69fdb}{}\index{Crawler\+::\+Website@{Crawler\+::\+Website}!Const\+Iterator@{Const\+Iterator}}
\index{Const\+Iterator@{Const\+Iterator}!Crawler\+::\+Website@{Crawler\+::\+Website}}
\subsubsection[{Const\+Iterator}]{\setlength{\rightskip}{0pt plus 5cm}using {\bf Crawler\+::\+Website\+::\+Const\+Iterator} =  std\+::list $<${\bf Crawler\+::\+Link}$>$\+::const\+\_\+iterator}\label{class_crawler_1_1_website_acfbc2b2241aa025f4fc57965dfe69fdb}


Definition at line 18 of file Website.\+hpp.

\hypertarget{class_crawler_1_1_website_ad323c2cfd249fc9cd2692c00eb50c0c9}{}\index{Crawler\+::\+Website@{Crawler\+::\+Website}!Iterator@{Iterator}}
\index{Iterator@{Iterator}!Crawler\+::\+Website@{Crawler\+::\+Website}}
\subsubsection[{Iterator}]{\setlength{\rightskip}{0pt plus 5cm}using {\bf Crawler\+::\+Website\+::\+Iterator} =  std\+::list $<${\bf Crawler\+::\+Link}$>$\+::iterator}\label{class_crawler_1_1_website_ad323c2cfd249fc9cd2692c00eb50c0c9}


Definition at line 17 of file Website.\+hpp.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_crawler_1_1_website_af117d7f36a02bb69e73abe35c7840fd8}{}\index{Crawler\+::\+Website@{Crawler\+::\+Website}!Website@{Website}}
\index{Website@{Website}!Crawler\+::\+Website@{Crawler\+::\+Website}}
\subsubsection[{Website}]{\setlength{\rightskip}{0pt plus 5cm}Crawler\+::\+Website\+::\+Website (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{class_crawler_1_1_website_af117d7f36a02bb69e73abe35c7840fd8}


Default constructor which adds the root as default entry. 



Definition at line 19 of file Website.\+cpp.

\hypertarget{class_crawler_1_1_website_a1f9fc004b40e3c2ab5a3fabc237fef44}{}\index{Crawler\+::\+Website@{Crawler\+::\+Website}!Website@{Website}}
\index{Website@{Website}!Crawler\+::\+Website@{Crawler\+::\+Website}}
\subsubsection[{Website}]{\setlength{\rightskip}{0pt plus 5cm}Crawler\+::\+Website\+::\+Website (
\begin{DoxyParamCaption}
\item[{const std\+::string \&}]{scheme, }
\item[{const std\+::string \&}]{authority}
\end{DoxyParamCaption}
)}\label{class_crawler_1_1_website_a1f9fc004b40e3c2ab5a3fabc237fef44}


Constructor. 


\begin{DoxyParams}{Parameters}
{\em scheme} & Scheme or protocol (\char`\"{}http\char`\"{}; \char`\"{}ftp\char`\"{}) \\
\hline
{\em authority} & Provider or server (\char`\"{}localhost\+:80\char`\"{}; \char`\"{}127.\+0.\+0.\+1\char`\"{}; \char`\"{}username@host.\+de\+:5000\char`\"{}) \\
\hline
\end{DoxyParams}


Definition at line 24 of file Website.\+cpp.

\hypertarget{class_crawler_1_1_website_a0b01cf699479e5c1acd31fc97d10f57e}{}\index{Crawler\+::\+Website@{Crawler\+::\+Website}!Website@{Website}}
\index{Website@{Website}!Crawler\+::\+Website@{Crawler\+::\+Website}}
\subsubsection[{Website}]{\setlength{\rightskip}{0pt plus 5cm}Crawler\+::\+Website\+::\+Website (
\begin{DoxyParamCaption}
\item[{const std\+::string \&}]{website}
\end{DoxyParamCaption}
)}\label{class_crawler_1_1_website_a0b01cf699479e5c1acd31fc97d10f57e}


Constructor for parsing a website. 


\begin{DoxyParams}{Parameters}
{\em website} & String which gets parsed \\
\hline
\end{DoxyParams}


Definition at line 31 of file Website.\+cpp.

\hypertarget{class_crawler_1_1_website_a207c8f8aea36c7f974c1bc25c533c1de}{}\index{Crawler\+::\+Website@{Crawler\+::\+Website}!Website@{Website}}
\index{Website@{Website}!Crawler\+::\+Website@{Crawler\+::\+Website}}
\subsubsection[{Website}]{\setlength{\rightskip}{0pt plus 5cm}Crawler\+::\+Website\+::\+Website (
\begin{DoxyParamCaption}
\item[{const {\bf Website} \&}]{website}
\end{DoxyParamCaption}
)}\label{class_crawler_1_1_website_a207c8f8aea36c7f974c1bc25c533c1de}


Default copy constructor. 


\begin{DoxyParams}{Parameters}
{\em website} & \hyperlink{class_crawler_1_1_website}{Website} which is copied \\
\hline
\end{DoxyParams}


Definition at line 54 of file Website.\+cpp.

\hypertarget{class_crawler_1_1_website_af1988e1690b7d76d5e04ae25bb7b400f}{}\index{Crawler\+::\+Website@{Crawler\+::\+Website}!Website@{Website}}
\index{Website@{Website}!Crawler\+::\+Website@{Crawler\+::\+Website}}
\subsubsection[{Website}]{\setlength{\rightskip}{0pt plus 5cm}Crawler\+::\+Website\+::\+Website (
\begin{DoxyParamCaption}
\item[{{\bf Website} \&\&}]{website}
\end{DoxyParamCaption}
)}\label{class_crawler_1_1_website_af1988e1690b7d76d5e04ae25bb7b400f}


Default move Constructor. 


\begin{DoxyParams}{Parameters}
{\em website} & \hyperlink{class_crawler_1_1_website}{Website} which is moved \\
\hline
\end{DoxyParams}


Definition at line 62 of file Website.\+cpp.



\subsection{Member Function Documentation}
\hypertarget{class_crawler_1_1_website_ae329d422dadf492168d97e60d1665a50}{}\index{Crawler\+::\+Website@{Crawler\+::\+Website}!add\+Link@{add\+Link}}
\index{add\+Link@{add\+Link}!Crawler\+::\+Website@{Crawler\+::\+Website}}
\subsubsection[{add\+Link}]{\setlength{\rightskip}{0pt plus 5cm}void Crawler\+::\+Website\+::add\+Link (
\begin{DoxyParamCaption}
\item[{const {\bf Crawler\+::\+Link} \&}]{link}
\end{DoxyParamCaption}
)}\label{class_crawler_1_1_website_ae329d422dadf492168d97e60d1665a50}


Adds a link to the website. 


\begin{DoxyParams}{Parameters}
{\em link} & \hyperlink{class_crawler_1_1_link}{Link} which is added \\
\hline
\end{DoxyParams}


Definition at line 138 of file Website.\+cpp.

\hypertarget{class_crawler_1_1_website_aae6db6037312d6fad6ae2ff01000fd64}{}\index{Crawler\+::\+Website@{Crawler\+::\+Website}!begin@{begin}}
\index{begin@{begin}!Crawler\+::\+Website@{Crawler\+::\+Website}}
\subsubsection[{begin}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Crawler\+::\+Website\+::\+Iterator} Crawler\+::\+Website\+::begin (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{class_crawler_1_1_website_aae6db6037312d6fad6ae2ff01000fd64}


Returns begin iterator. 

\begin{DoxyReturn}{Returns}
Begin iterator 
\end{DoxyReturn}


Definition at line 200 of file Website.\+cpp.

\hypertarget{class_crawler_1_1_website_afcbc63478703d83dd768b28b6c012f2e}{}\index{Crawler\+::\+Website@{Crawler\+::\+Website}!begin@{begin}}
\index{begin@{begin}!Crawler\+::\+Website@{Crawler\+::\+Website}}
\subsubsection[{begin}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Crawler\+::\+Website\+::\+Const\+Iterator} Crawler\+::\+Website\+::begin (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}\label{class_crawler_1_1_website_afcbc63478703d83dd768b28b6c012f2e}


Returns begin iterator. 

\begin{DoxyReturn}{Returns}
Begin iterator 
\end{DoxyReturn}


Definition at line 205 of file Website.\+cpp.

\hypertarget{class_crawler_1_1_website_a1625142f1eb62413e46421a9be7ae66e}{}\index{Crawler\+::\+Website@{Crawler\+::\+Website}!cbegin@{cbegin}}
\index{cbegin@{cbegin}!Crawler\+::\+Website@{Crawler\+::\+Website}}
\subsubsection[{cbegin}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Crawler\+::\+Website\+::\+Const\+Iterator} Crawler\+::\+Website\+::cbegin (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}\label{class_crawler_1_1_website_a1625142f1eb62413e46421a9be7ae66e}


Returns begin iterator. 

\begin{DoxyReturn}{Returns}
Begin iterator 
\end{DoxyReturn}


Definition at line 210 of file Website.\+cpp.

\hypertarget{class_crawler_1_1_website_a25f7e9a65365639f78decdffd4406453}{}\index{Crawler\+::\+Website@{Crawler\+::\+Website}!cend@{cend}}
\index{cend@{cend}!Crawler\+::\+Website@{Crawler\+::\+Website}}
\subsubsection[{cend}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Crawler\+::\+Website\+::\+Const\+Iterator} Crawler\+::\+Website\+::cend (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}\label{class_crawler_1_1_website_a25f7e9a65365639f78decdffd4406453}


Returns end iterator. 

\begin{DoxyReturn}{Returns}
End iterator 
\end{DoxyReturn}


Definition at line 225 of file Website.\+cpp.

\hypertarget{class_crawler_1_1_website_a6d640935e728869e08f10f7a2b8c91e2}{}\index{Crawler\+::\+Website@{Crawler\+::\+Website}!end@{end}}
\index{end@{end}!Crawler\+::\+Website@{Crawler\+::\+Website}}
\subsubsection[{end}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Crawler\+::\+Website\+::\+Iterator} Crawler\+::\+Website\+::end (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{class_crawler_1_1_website_a6d640935e728869e08f10f7a2b8c91e2}


Returns end iterator. 

\begin{DoxyReturn}{Returns}
End iterator 
\end{DoxyReturn}


Definition at line 215 of file Website.\+cpp.

\hypertarget{class_crawler_1_1_website_a156de4df95ad623d00a1cea69cb99bbd}{}\index{Crawler\+::\+Website@{Crawler\+::\+Website}!end@{end}}
\index{end@{end}!Crawler\+::\+Website@{Crawler\+::\+Website}}
\subsubsection[{end}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Crawler\+::\+Website\+::\+Const\+Iterator} Crawler\+::\+Website\+::end (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}\label{class_crawler_1_1_website_a156de4df95ad623d00a1cea69cb99bbd}


Returns end iterator. 

\begin{DoxyReturn}{Returns}
End iterator 
\end{DoxyReturn}


Definition at line 220 of file Website.\+cpp.

\hypertarget{class_crawler_1_1_website_a6e59ad6594bee5c156c3fba3dd9567a0}{}\index{Crawler\+::\+Website@{Crawler\+::\+Website}!exists\+Link@{exists\+Link}}
\index{exists\+Link@{exists\+Link}!Crawler\+::\+Website@{Crawler\+::\+Website}}
\subsubsection[{exists\+Link}]{\setlength{\rightskip}{0pt plus 5cm}bool Crawler\+::\+Website\+::exists\+Link (
\begin{DoxyParamCaption}
\item[{const {\bf Crawler\+::\+Link} \&}]{link}
\end{DoxyParamCaption}
)}\label{class_crawler_1_1_website_a6e59ad6594bee5c156c3fba3dd9567a0}


Checks if link exists. 


\begin{DoxyParams}{Parameters}
{\em link} & \hyperlink{class_crawler_1_1_link}{Link} which is checked \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
True if link exists 
\end{DoxyReturn}


Definition at line 129 of file Website.\+cpp.

\hypertarget{class_crawler_1_1_website_a108463b7bc848fb9b86b7b7601f94f68}{}\index{Crawler\+::\+Website@{Crawler\+::\+Website}!get\+Authority@{get\+Authority}}
\index{get\+Authority@{get\+Authority}!Crawler\+::\+Website@{Crawler\+::\+Website}}
\subsubsection[{get\+Authority}]{\setlength{\rightskip}{0pt plus 5cm}const std\+::string \& Crawler\+::\+Website\+::get\+Authority (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}\label{class_crawler_1_1_website_a108463b7bc848fb9b86b7b7601f94f68}


Returns authority. 

\begin{DoxyReturn}{Returns}
Reference to authority 
\end{DoxyReturn}


Definition at line 119 of file Website.\+cpp.

\hypertarget{class_crawler_1_1_website_a34166a0d295179265b83f8fc7e20a01a}{}\index{Crawler\+::\+Website@{Crawler\+::\+Website}!get\+Links@{get\+Links}}
\index{get\+Links@{get\+Links}!Crawler\+::\+Website@{Crawler\+::\+Website}}
\subsubsection[{get\+Links}]{\setlength{\rightskip}{0pt plus 5cm}const std\+::list$<$ {\bf Crawler\+::\+Link} $>$ \& Crawler\+::\+Website\+::get\+Links (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}\label{class_crawler_1_1_website_a34166a0d295179265b83f8fc7e20a01a}


Returns the list of links. 

\begin{DoxyReturn}{Returns}
Reference to the list of links 
\end{DoxyReturn}


Definition at line 167 of file Website.\+cpp.

\hypertarget{class_crawler_1_1_website_a332143681603ea9dc70dfbfe5b8c1b95}{}\index{Crawler\+::\+Website@{Crawler\+::\+Website}!get\+Scheme@{get\+Scheme}}
\index{get\+Scheme@{get\+Scheme}!Crawler\+::\+Website@{Crawler\+::\+Website}}
\subsubsection[{get\+Scheme}]{\setlength{\rightskip}{0pt plus 5cm}const std\+::string \& Crawler\+::\+Website\+::get\+Scheme (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}\label{class_crawler_1_1_website_a332143681603ea9dc70dfbfe5b8c1b95}


Returns scheme. 

\begin{DoxyReturn}{Returns}
Reference to scheme 
\end{DoxyReturn}


Definition at line 108 of file Website.\+cpp.

\hypertarget{class_crawler_1_1_website_a1f59eed6d2245e66021602ee9808c303}{}\index{Crawler\+::\+Website@{Crawler\+::\+Website}!get\+Worker@{get\+Worker}}
\index{get\+Worker@{get\+Worker}!Crawler\+::\+Website@{Crawler\+::\+Website}}
\subsubsection[{get\+Worker}]{\setlength{\rightskip}{0pt plus 5cm}const std\+::list$<$ {\bf Crawler\+::\+Worker} $\ast$ $>$ \& Crawler\+::\+Website\+::get\+Worker (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}\label{class_crawler_1_1_website_a1f59eed6d2245e66021602ee9808c303}


Returns all assigned workers. 

\begin{DoxyReturn}{Returns}
Vector of all assigned worker 
\end{DoxyReturn}


Definition at line 195 of file Website.\+cpp.

\hypertarget{class_crawler_1_1_website_aa2e74f3f60f353ad06b37fe704cbc7fb}{}\index{Crawler\+::\+Website@{Crawler\+::\+Website}!operator=@{operator=}}
\index{operator=@{operator=}!Crawler\+::\+Website@{Crawler\+::\+Website}}
\subsubsection[{operator=}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Crawler\+::\+Website} \& Crawler\+::\+Website\+::operator= (
\begin{DoxyParamCaption}
\item[{const {\bf Website} \&}]{website}
\end{DoxyParamCaption}
)}\label{class_crawler_1_1_website_aa2e74f3f60f353ad06b37fe704cbc7fb}


Copy assignment operator overloading. 


\begin{DoxyParams}{Parameters}
{\em website} & \hyperlink{class_crawler_1_1_website}{Website} which is copied \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Reference to this 
\end{DoxyReturn}


Definition at line 72 of file Website.\+cpp.

\hypertarget{class_crawler_1_1_website_a2a2e817a709a813f3be842450012c672}{}\index{Crawler\+::\+Website@{Crawler\+::\+Website}!operator=@{operator=}}
\index{operator=@{operator=}!Crawler\+::\+Website@{Crawler\+::\+Website}}
\subsubsection[{operator=}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Crawler\+::\+Website} \& Crawler\+::\+Website\+::operator= (
\begin{DoxyParamCaption}
\item[{{\bf Website} \&\&}]{website}
\end{DoxyParamCaption}
)}\label{class_crawler_1_1_website_a2a2e817a709a813f3be842450012c672}


Move assignment operator overloading. 


\begin{DoxyParams}{Parameters}
{\em website} & \hyperlink{class_crawler_1_1_website}{Website} which is moved \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Reference to this 
\end{DoxyReturn}


Definition at line 84 of file Website.\+cpp.

\hypertarget{class_crawler_1_1_website_aea1eb836a63cd3a3a1060c0758858ce4}{}\index{Crawler\+::\+Website@{Crawler\+::\+Website}!register\+Worker@{register\+Worker}}
\index{register\+Worker@{register\+Worker}!Crawler\+::\+Website@{Crawler\+::\+Website}}
\subsubsection[{register\+Worker}]{\setlength{\rightskip}{0pt plus 5cm}void Crawler\+::\+Website\+::register\+Worker (
\begin{DoxyParamCaption}
\item[{{\bf Crawler\+::\+Worker} \&}]{worker}
\end{DoxyParamCaption}
)}\label{class_crawler_1_1_website_aea1eb836a63cd3a3a1060c0758858ce4}


Registers a worker. 


\begin{DoxyParams}{Parameters}
{\em worker} & \hyperlink{class_crawler_1_1_worker}{Worker} which gets registered \\
\hline
\end{DoxyParams}


Definition at line 172 of file Website.\+cpp.

\hypertarget{class_crawler_1_1_website_a49c608507b8a9e5a9a61ab322218bc90}{}\index{Crawler\+::\+Website@{Crawler\+::\+Website}!remove\+Link@{remove\+Link}}
\index{remove\+Link@{remove\+Link}!Crawler\+::\+Website@{Crawler\+::\+Website}}
\subsubsection[{remove\+Link}]{\setlength{\rightskip}{0pt plus 5cm}void Crawler\+::\+Website\+::remove\+Link (
\begin{DoxyParamCaption}
\item[{const {\bf Crawler\+::\+Link} \&}]{link}
\end{DoxyParamCaption}
)}\label{class_crawler_1_1_website_a49c608507b8a9e5a9a61ab322218bc90}


Removes a link from the website. 


\begin{DoxyParams}{Parameters}
{\em link} & \hyperlink{class_crawler_1_1_link}{Link} which is removed \\
\hline
\end{DoxyParams}


Definition at line 148 of file Website.\+cpp.

\hypertarget{class_crawler_1_1_website_a21cb582dcf6dd40a55201d0d72895aff}{}\index{Crawler\+::\+Website@{Crawler\+::\+Website}!remove\+Link@{remove\+Link}}
\index{remove\+Link@{remove\+Link}!Crawler\+::\+Website@{Crawler\+::\+Website}}
\subsubsection[{remove\+Link}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Crawler\+::\+Website\+::\+Iterator} Crawler\+::\+Website\+::remove\+Link (
\begin{DoxyParamCaption}
\item[{{\bf Iterator}}]{link}
\end{DoxyParamCaption}
)}\label{class_crawler_1_1_website_a21cb582dcf6dd40a55201d0d72895aff}


Removes a link from the website. 


\begin{DoxyParams}{Parameters}
{\em iterator} & Iterator (link) which is removed \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Last iterator in the list 
\end{DoxyReturn}


Definition at line 161 of file Website.\+cpp.

\hypertarget{class_crawler_1_1_website_a1131a5af4ca3680410de2875ffcd1d2e}{}\index{Crawler\+::\+Website@{Crawler\+::\+Website}!request\+Link@{request\+Link}}
\index{request\+Link@{request\+Link}!Crawler\+::\+Website@{Crawler\+::\+Website}}
\subsubsection[{request\+Link}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Crawler\+::\+Link} $\ast$ Crawler\+::\+Website\+::request\+Link (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{class_crawler_1_1_website_a1131a5af4ca3680410de2875ffcd1d2e}


Requests link from website The function marks the website automatically as visited if all links has been visited. 

\begin{DoxyReturn}{Returns}
Next link of website which has not been visited or nullptr 
\end{DoxyReturn}


Definition at line 230 of file Website.\+cpp.

\hypertarget{class_crawler_1_1_website_aae4b1c88160dde492aa935494177764f}{}\index{Crawler\+::\+Website@{Crawler\+::\+Website}!set\+Authority@{set\+Authority}}
\index{set\+Authority@{set\+Authority}!Crawler\+::\+Website@{Crawler\+::\+Website}}
\subsubsection[{set\+Authority}]{\setlength{\rightskip}{0pt plus 5cm}void Crawler\+::\+Website\+::set\+Authority (
\begin{DoxyParamCaption}
\item[{const std\+::string \&}]{authority}
\end{DoxyParamCaption}
)}\label{class_crawler_1_1_website_aae4b1c88160dde492aa935494177764f}


Changes authority. 


\begin{DoxyParams}{Parameters}
{\em scheme} & New authority \\
\hline
\end{DoxyParams}


Definition at line 124 of file Website.\+cpp.

\hypertarget{class_crawler_1_1_website_a423aecbab2d73031b42ac9f986c4aa58}{}\index{Crawler\+::\+Website@{Crawler\+::\+Website}!set\+Scheme@{set\+Scheme}}
\index{set\+Scheme@{set\+Scheme}!Crawler\+::\+Website@{Crawler\+::\+Website}}
\subsubsection[{set\+Scheme}]{\setlength{\rightskip}{0pt plus 5cm}void Crawler\+::\+Website\+::set\+Scheme (
\begin{DoxyParamCaption}
\item[{const std\+::string \&}]{scheme}
\end{DoxyParamCaption}
)}\label{class_crawler_1_1_website_a423aecbab2d73031b42ac9f986c4aa58}


Changes scheme. 


\begin{DoxyParams}{Parameters}
{\em scheme} & New scheme \\
\hline
\end{DoxyParams}


Definition at line 113 of file Website.\+cpp.

\hypertarget{class_crawler_1_1_website_ac9e3218e95e4121b730958d6f4d5ab88}{}\index{Crawler\+::\+Website@{Crawler\+::\+Website}!set\+Visited@{set\+Visited}}
\index{set\+Visited@{set\+Visited}!Crawler\+::\+Website@{Crawler\+::\+Website}}
\subsubsection[{set\+Visited}]{\setlength{\rightskip}{0pt plus 5cm}void Crawler\+::\+Website\+::set\+Visited (
\begin{DoxyParamCaption}
\item[{bool}]{visited}
\end{DoxyParamCaption}
)}\label{class_crawler_1_1_website_ac9e3218e95e4121b730958d6f4d5ab88}


Changes if website was visited. 


\begin{DoxyParams}{Parameters}
{\em visited} & Value of visited \\
\hline
\end{DoxyParams}


Definition at line 102 of file Website.\+cpp.

\hypertarget{class_crawler_1_1_website_a697612a26c11879c5b8d1555778778de}{}\index{Crawler\+::\+Website@{Crawler\+::\+Website}!unregister\+Worker@{unregister\+Worker}}
\index{unregister\+Worker@{unregister\+Worker}!Crawler\+::\+Website@{Crawler\+::\+Website}}
\subsubsection[{unregister\+Worker}]{\setlength{\rightskip}{0pt plus 5cm}void Crawler\+::\+Website\+::unregister\+Worker (
\begin{DoxyParamCaption}
\item[{{\bf Crawler\+::\+Worker} \&}]{worker}
\end{DoxyParamCaption}
)}\label{class_crawler_1_1_website_a697612a26c11879c5b8d1555778778de}


Unregisters a worker. 


\begin{DoxyParams}{Parameters}
{\em worker} & \hyperlink{class_crawler_1_1_worker}{Worker} which gets unregistered \\
\hline
\end{DoxyParams}


Definition at line 182 of file Website.\+cpp.

\hypertarget{class_crawler_1_1_website_a79d21d817e6cfa9300d448540df03400}{}\index{Crawler\+::\+Website@{Crawler\+::\+Website}!was\+Visited@{was\+Visited}}
\index{was\+Visited@{was\+Visited}!Crawler\+::\+Website@{Crawler\+::\+Website}}
\subsubsection[{was\+Visited}]{\setlength{\rightskip}{0pt plus 5cm}bool Crawler\+::\+Website\+::was\+Visited (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}\label{class_crawler_1_1_website_a79d21d817e6cfa9300d448540df03400}


Checks if website was visited (all links have been visited) 

\begin{DoxyReturn}{Returns}
True of website was visited 
\end{DoxyReturn}


Definition at line 97 of file Website.\+cpp.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
Source/\+Crawler/\hyperlink{_website_8hpp}{Website.\+hpp}\item 
Source/\+Crawler/\hyperlink{_website_8cpp}{Website.\+cpp}\end{DoxyCompactItemize}
